<%@ page contentType="application/json; charset=UTF-8"%>
<%@ page import="org.json.simple.*" %>
<%@ page import="project.web.Accessdb" %>
<%@ page import="java.util.*" %>
<%

Accessdb idc = new Accessdb();
idc.setDbUrl(config.getInitParameter("dbUrl"));
idc.setDbUser(config.getInitParameter("dbUser"));
idc.setDbPass(config.getInitParameter("dbPass"));

String req = (String)request.getParameter("keyword");

List<String> dup = idc.getList(req);
JSONObject json = new JSONObject();
json.put("list", dup);
out.print(json);
out.flush();

%>